package com.hksj.em.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hksj.em.entity.Surgical;
import com.hksj.em.query.SurgicalQuery;
import com.hksj.em.vo.SurgicalFromHisVO;
import com.hksj.em.vo.SurgicalVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zengke
 * @version 1.0
 * @see SurgicalMapper
 * @since 2025/03/25 10:27
 */

@Mapper
public interface SurgicalMapper extends BaseMapper<Surgical> {

    /**
     * 分页查询排台列表
     * @param page 分页对象
     * @param query 排台查询对象
     * @return 分页结果
     */
    List<SurgicalVO> querySurgicalListByPaging(IPage<SurgicalVO> page, @Param("query") SurgicalQuery query);

    List<SurgicalFromHisVO> querySurgicalFromHisList();

    List<SurgicalVO> querySurgeryStatusForFamilyWaitingArea(IPage<SurgicalVO> page);
}
